package com.dao;

import com.entity.BookType;
import com.entity.Books;
import com.entity.BorrowBooks;
import com.github.pagehelper.Page;


import java.util.List;
import java.util.Map;

public interface AdminBookDao {

    List<BookType> queryBookType();

    Page queryAllBooks(Map<String, Object> map);

    Books queryBookById(Integer bNo);


    void updateBook(Books book);

    List<BorrowBooks> queryBorrowers(Integer bNo);

    int queryBorrowerNumById(Integer bNo);

    void deleteBookById(Integer bNo);

    void addBook(Books book);
}
